<div class="top">
    <div class="top-logo">
        <div class="logo_box">
            <h6 class="hidden-xs">Shantou Lilai fine chemical raw materials Co. Ltd.</h6>
            <div class="login">
                <div class="collection  hidden-xs"><span>Set to the home page</span><b>丨</b><span>Join collection</span></div>
                <!--<div class="switch">-->
                    <!--<div class="zw"><a href="/" style="color: #009944;">中文版</a></div>-->
                    <!--<div class="yw"><a href="/english" style="color: #fff;">英文版</a></div>-->
                    <!--<div class="hk"><a href="/" style="color: #009944;">中文版</a></div>-->
                <!--</div>-->
            </div>
        </div>
    </div>
    <div class="logo_tetx hidden-xs">
        <div class="logo">
            <a href="/baibu/index"><img class="lg" src="" width="50px;" height="50px;"></a>
        </div>
        <div class="hotline">
            <span>联系电话：</span>
            <i class="phone"></i>
        </div>
    </div>
</div>
<header class="header-frontend">
    <div class="navbar navbar-default navbar-static-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand hidden-lg" href="index.html">
                    <!--<img class="lg" src=""/>-->
                </a>
            </div>
            <div class="navbar-collapse collapse" style="height: 1px;">
                <ul class="nav navbar-nav">
                    <!--<li class="active"><a href="index.html">HOME</a></li>-->
                    <!--<li><a href="about.html">ABOUT US</a></li>-->
                    <!--<li><a href="honor.html">HONOR</a> </li>-->
                    <!--<li><a href="product.html">PRODUCTS</a></li>-->
                    <!--<li><a href="news.html">NEWS</a></li>-->
                    <!--<li><a href="talent.html">RESOURCES</a></li>-->
                    <!--<li><a href="contact.html">CONTACT US</a></li>-->
                    <!--<li><a href="online.html">FEEDBACK</a></li>-->
                </ul>
            </div>
        </div>
    </div>
</header>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
    <!--轮播图-->
    <ol class="carousel-indicators"></ol>
    <div class="carousel-inner" role="listbox"></div>
    <!--轮播图左右翻页-->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right"></span>
        <span class="sr-only">Next</span>
    </a>
</div>
<script>
    $(function () {
        $.ajax({
            url:'/baibu/index/Index/getInfo',
            dataType:'json',
            type : 'post',
            success : function (data) {
                if(data.status == 1){
                    $('.lg').prop('src',data.data.logo);
                    $('.phone').html(data.data.phone);
                    if(data.data.banner){
                        var banner = data.data.banner;
                        var html = '';
                        var html2 = '';
                        $.each(banner,function (i,item) {
                            if(i==0){
                                html += '<li data-target="#carousel-example-generic" data-slide-to="'+i+'" class="active"></li>';
                                html2 += '<div class="item active"><img src="'+item.img+'"></div>';
                            }else{
                                html += '<li data-target="#carousel-example-generic" data-slide-to="'+i+'"></li>';
                                html2 += '<div class="item"><img src="'+item.img+'"></div>';
                            }
                        });
                        $('.carousel-indicators').append(html);
                        $('.carousel-inner').append(html2);
                    }else{
                        $('#carousel-example-generic').hide();
                    }
                }
            }
        });
    });
</script>